home *** CD-ROM | disk | FTP | other *** search
/ AppleScript - The Beta Release / AppleScript - The Beta Release.iso / Development Tools / Sample Applications / CoreSample / CoreSample Source / CoreSample.h < prev    next >
Encoding:
Text File  |  1992-11-24  |  2.9 KB  |  74 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------//
  2. //    CoreSample.h    -    Rez and C Include File                            //
  3. //                                                                        //
  4. //    CoreSample is an application that is Apple Event-aware, Scripting    //
  5. //    Compatible, and recordable.  It provides support for the Required    //
  6. //    and Core suite of Apple Events, the Object Model, and the Open        //
  7. //    Scripting Architecture.                                                //
  8. //                                                                        //
  9. //    by Sue Dumont                                                        //
  10. //       Applications Scripting Group                                        //
  11. //                                                                        //
  12. //    Copyright © Apple Computer, Inc. 1991,1992                            //
  13. //    All rights reserved.                                                //
  14. //----------------------------------------------------------------------//
  15.  
  16.  
  17. #define    pPosition         'ppos'            // Position property code id for window.
  18. #define kAEDontExecute    0x00002000L        // Flag used for smart recording.
  19. #define kCoreSampleID    'smpl'            // suite id code for CoreSample
  20.  
  21. #define    kNameKeyForm        1            // Indicates formName for object specifier.
  22. #define    kIndexKeyForm        2            // Indicates formAbsolutePosition.
  23. #define    kEndOfList            nil            // Nil terminator for variable argument list.
  24.  
  25.  
  26.     //    Menu Items.
  27. #define    mApple                    128            // Apple menu
  28. #define    iAbout                    1
  29. #define    mFile                    129            // File menu
  30. #define    iNew                    1
  31. #define    iClose                    4
  32. #define    iQuit                    8
  33. #define    mEdit                    130            // Edit menu
  34. #define    iUndo                    1
  35. #define    iCut                    3
  36. #define    iCopy                    4
  37. #define    iPaste                    5
  38. #define    iClear                    6
  39.  
  40. #define kDITop                    0x0050        // Disk event dialog
  41. #define kDILeft                    0x0070        // box data.
  42. #define    kMaxOpenWindows            50            // Max # windows open.
  43. #define    kMaxStringSize            255            // Max # characters in string.
  44. #define    kMinWinDim                64            // Minimum size of a window.
  45. #define    kSysEnvironsVersion        1            // SysEnvRec version.
  46. #define    kOSEvent                app4Evt        // Event used by MultiFinder.
  47. #define    kSuspendResumeMessage    1            // High byte of suspend/resume event message.
  48. #define    kResumeMask                1            // Bit of message field for resume vs. suspend.
  49. #define    kMouseMovedMessage        0xFA        // High byte of mouse-moved event message.
  50. #define    kNoEvents                0            // No events mask.
  51.  
  52.     //    Min result from the equation: ORD(GetApplLimit) - ORD(ApplicZone)     
  53. #define    kMinHeap                (29 * 1024)    // Min size of memory.
  54.     //    Min result from PurgeSpace when called at initialization time. 
  55. #define    kMinSpace                (20 * 1024)
  56. #define kPrefSize                300            // Preferred heap size.
  57. #define kMinSize                250            // Minimum heap size.
  58.  
  59.     // The following are indicies into STR# resources.
  60. #define    eWrongMachine            1
  61. #define    eSmallSize                2
  62. #define    eNoMemory                3
  63. #define    eAEError                4
  64.  
  65. #define    rMenuBar                128            // application's menu bar
  66. #define    rAboutAlert                128            // about alert
  67. #define    rUserAlert                129            // user error alert
  68. #define    rDocWindow                128            // application's window
  69. #define    kErrStrings                128            // error string list
  70.  
  71.     // Data used in CoreSample.c
  72. #define    kMaxOpenWindows            45            // Max # windows open.
  73. #define    kMaxStrSize                255            // Max # characters in string.
  74.